package com.jsu.springboot_crop.service;

import com.github.pagehelper.PageInfo;
import com.jsu.springboot_crop.entity.Knowledge;

import java.util.List;

public interface KnowledgeService {
    //分页查询所有农业知识
    PageInfo<Knowledge> findPage(Integer pageNum);
    //条件查询农业知识
    PageInfo<Knowledge> findPageByKeys(String keys, Integer pageNum);
    //根据id查询农业知识
    Knowledge selectById(Integer id);
    //查询个人农业知识
    List<Knowledge> selectByUsername(String name);
    //添加知识
    void add(Knowledge knowledge);
    //修改农业知识
    void update(Knowledge knowledge,Integer id);
    //删除农业知识
    void delete(Integer id);
}
